package com.geek.factory.controller;

import com.geek.factory.result.Result;
import com.geek.factory.result.ResultEntityEnum;
import com.geek.factory.service.SmsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenmin
 * @desc TODO
 * @date 2025/6/26
 */
@RestController
@RequestMapping("/sms")
@Api(tags = "发送短信接口")
public class SmsController {

    @Autowired
    private SmsService smsService;

    @ApiOperation("登录时发送短信验证")
    @GetMapping("sendMsgByLogin")
    public Result sendMsgByLogin(String phone) {
        Result result = smsService.sendMsgByLogin(phone);
        return result;
    }
}
